{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "import akshare as ak\n",
    "def holding_stock_list(code,date):\n",
    "    fund_portfolio_hold_em_df = ak.fund_portfolio_hold_em(code=code, year=date)\n",
    "    print(fund_portfolio_hold_em_df)\n",
    "    return fund_portfolio_hold_em_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "      序号    股票代码  股票名称  占净值比例     持股数     持仓市值              季度\n",
      "0      1  601658  邮储银行   4.01  315.93  1702.86  2022年2季度股票投资明细\n",
      "1      2  600919  江苏银行   3.99  238.16  1695.71  2022年2季度股票投资明细\n",
      "2      3  601166  兴业银行   3.55   75.79  1508.22  2022年2季度股票投资明细\n",
      "3      4  600325  华发股份   3.18  178.19  1348.90  2022年2季度股票投资明细\n",
      "4      5  600153  建发股份   2.93   95.22  1244.53  2022年2季度股票投资明细\n",
      "..   ...     ...   ...    ...     ...      ...             ...\n",
      "118  119  600036  招商银行   1.35    6.40   299.52  2022年1季度股票投资明细\n",
      "119  120  600926  杭州银行   0.79   12.38   174.43  2022年1季度股票投资明细\n",
      "120  121  601872  招商轮船   0.40   18.88    89.11  2022年1季度股票投资明细\n",
      "121  122  300494  盛天网络   0.40    5.19    88.49  2022年1季度股票投资明细\n",
      "122  123  600837  海通证券   0.38    8.25    84.98  2022年1季度股票投资明细\n",
      "\n",
      "[123 rows x 7 columns]\n"
     ]
    }
   ],
   "source": [
    "df=holding_stock_list('501059',2022)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>股票代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>占净值比例</th>\n",
       "      <th>持股数</th>\n",
       "      <th>持仓市值</th>\n",
       "      <th>季度</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>601658</td>\n",
       "      <td>邮储银行</td>\n",
       "      <td>4.01</td>\n",
       "      <td>315.93</td>\n",
       "      <td>1702.86</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>600919</td>\n",
       "      <td>江苏银行</td>\n",
       "      <td>3.99</td>\n",
       "      <td>238.16</td>\n",
       "      <td>1695.71</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.55</td>\n",
       "      <td>75.79</td>\n",
       "      <td>1508.22</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>600325</td>\n",
       "      <td>华发股份</td>\n",
       "      <td>3.18</td>\n",
       "      <td>178.19</td>\n",
       "      <td>1348.90</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>600153</td>\n",
       "      <td>建发股份</td>\n",
       "      <td>2.93</td>\n",
       "      <td>95.22</td>\n",
       "      <td>1244.53</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>600188</td>\n",
       "      <td>兖矿能源</td>\n",
       "      <td>2.47</td>\n",
       "      <td>26.60</td>\n",
       "      <td>1050.17</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>000552</td>\n",
       "      <td>靖远煤电</td>\n",
       "      <td>2.47</td>\n",
       "      <td>243.19</td>\n",
       "      <td>1048.15</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>601225</td>\n",
       "      <td>陕西煤业</td>\n",
       "      <td>2.45</td>\n",
       "      <td>49.05</td>\n",
       "      <td>1038.88</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>000090</td>\n",
       "      <td>天健集团</td>\n",
       "      <td>2.42</td>\n",
       "      <td>148.90</td>\n",
       "      <td>1025.92</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>601666</td>\n",
       "      <td>平煤股份</td>\n",
       "      <td>2.26</td>\n",
       "      <td>70.64</td>\n",
       "      <td>960.00</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>601958</td>\n",
       "      <td>金钼股份</td>\n",
       "      <td>2.19</td>\n",
       "      <td>105.00</td>\n",
       "      <td>928.20</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>600502</td>\n",
       "      <td>安徽建工</td>\n",
       "      <td>2.15</td>\n",
       "      <td>127.02</td>\n",
       "      <td>914.53</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>000002</td>\n",
       "      <td>万科A</td>\n",
       "      <td>2.12</td>\n",
       "      <td>43.92</td>\n",
       "      <td>900.36</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>000937</td>\n",
       "      <td>冀中能源</td>\n",
       "      <td>2.09</td>\n",
       "      <td>119.00</td>\n",
       "      <td>887.74</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>601000</td>\n",
       "      <td>唐山港</td>\n",
       "      <td>2.08</td>\n",
       "      <td>341.56</td>\n",
       "      <td>881.22</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>601009</td>\n",
       "      <td>南京银行</td>\n",
       "      <td>2.03</td>\n",
       "      <td>82.63</td>\n",
       "      <td>861.00</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>600863</td>\n",
       "      <td>内蒙华电</td>\n",
       "      <td>2.02</td>\n",
       "      <td>235.41</td>\n",
       "      <td>859.25</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>601088</td>\n",
       "      <td>中国神华</td>\n",
       "      <td>1.97</td>\n",
       "      <td>25.14</td>\n",
       "      <td>837.15</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>601098</td>\n",
       "      <td>中南传媒</td>\n",
       "      <td>1.97</td>\n",
       "      <td>88.53</td>\n",
       "      <td>835.72</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>601577</td>\n",
       "      <td>长沙银行</td>\n",
       "      <td>1.91</td>\n",
       "      <td>102.00</td>\n",
       "      <td>808.86</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>001979</td>\n",
       "      <td>招商蛇口</td>\n",
       "      <td>1.88</td>\n",
       "      <td>59.40</td>\n",
       "      <td>797.74</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>600057</td>\n",
       "      <td>厦门象屿</td>\n",
       "      <td>1.77</td>\n",
       "      <td>85.41</td>\n",
       "      <td>750.75</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>600548</td>\n",
       "      <td>深高速</td>\n",
       "      <td>1.72</td>\n",
       "      <td>76.65</td>\n",
       "      <td>731.24</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>002419</td>\n",
       "      <td>天虹股份</td>\n",
       "      <td>1.71</td>\n",
       "      <td>102.00</td>\n",
       "      <td>727.26</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>600064</td>\n",
       "      <td>南京高科</td>\n",
       "      <td>1.63</td>\n",
       "      <td>63.07</td>\n",
       "      <td>693.77</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>26</td>\n",
       "      <td>600028</td>\n",
       "      <td>中国石化</td>\n",
       "      <td>1.63</td>\n",
       "      <td>169.85</td>\n",
       "      <td>692.99</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>27</td>\n",
       "      <td>600461</td>\n",
       "      <td>洪城环境</td>\n",
       "      <td>1.60</td>\n",
       "      <td>83.72</td>\n",
       "      <td>677.29</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>28</td>\n",
       "      <td>600027</td>\n",
       "      <td>华电国际</td>\n",
       "      <td>1.52</td>\n",
       "      <td>164.49</td>\n",
       "      <td>646.45</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>29</td>\n",
       "      <td>600820</td>\n",
       "      <td>隧道股份</td>\n",
       "      <td>1.45</td>\n",
       "      <td>100.60</td>\n",
       "      <td>615.67</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>30</td>\n",
       "      <td>600350</td>\n",
       "      <td>山东高速</td>\n",
       "      <td>1.40</td>\n",
       "      <td>113.07</td>\n",
       "      <td>593.62</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>31</td>\n",
       "      <td>601668</td>\n",
       "      <td>中国建筑</td>\n",
       "      <td>1.39</td>\n",
       "      <td>111.20</td>\n",
       "      <td>591.58</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>32</td>\n",
       "      <td>000932</td>\n",
       "      <td>华菱钢铁</td>\n",
       "      <td>1.36</td>\n",
       "      <td>113.61</td>\n",
       "      <td>578.27</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>33</td>\n",
       "      <td>601928</td>\n",
       "      <td>凤凰传媒</td>\n",
       "      <td>1.35</td>\n",
       "      <td>79.97</td>\n",
       "      <td>571.79</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>34</td>\n",
       "      <td>600585</td>\n",
       "      <td>海螺水泥</td>\n",
       "      <td>1.29</td>\n",
       "      <td>15.55</td>\n",
       "      <td>548.60</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>35</td>\n",
       "      <td>600985</td>\n",
       "      <td>淮北矿业</td>\n",
       "      <td>1.27</td>\n",
       "      <td>37.00</td>\n",
       "      <td>538.72</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>36</td>\n",
       "      <td>000778</td>\n",
       "      <td>新兴铸管</td>\n",
       "      <td>0.94</td>\n",
       "      <td>83.00</td>\n",
       "      <td>400.06</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>37</td>\n",
       "      <td>601006</td>\n",
       "      <td>大秦铁路</td>\n",
       "      <td>0.86</td>\n",
       "      <td>55.70</td>\n",
       "      <td>367.06</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>38</td>\n",
       "      <td>601298</td>\n",
       "      <td>青岛港</td>\n",
       "      <td>0.86</td>\n",
       "      <td>67.00</td>\n",
       "      <td>366.49</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>39</td>\n",
       "      <td>600048</td>\n",
       "      <td>保利发展</td>\n",
       "      <td>0.84</td>\n",
       "      <td>20.47</td>\n",
       "      <td>357.41</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>40</td>\n",
       "      <td>600449</td>\n",
       "      <td>宁夏建材</td>\n",
       "      <td>0.79</td>\n",
       "      <td>27.50</td>\n",
       "      <td>334.68</td>\n",
       "      <td>2022年2季度股票投资明细</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号    股票代码  股票名称  占净值比例     持股数     持仓市值              季度\n",
       "0    1  601658  邮储银行   4.01  315.93  1702.86  2022年2季度股票投资明细\n",
       "1    2  600919  江苏银行   3.99  238.16  1695.71  2022年2季度股票投资明细\n",
       "2    3  601166  兴业银行   3.55   75.79  1508.22  2022年2季度股票投资明细\n",
       "3    4  600325  华发股份   3.18  178.19  1348.90  2022年2季度股票投资明细\n",
       "4    5  600153  建发股份   2.93   95.22  1244.53  2022年2季度股票投资明细\n",
       "5    6  600188  兖矿能源   2.47   26.60  1050.17  2022年2季度股票投资明细\n",
       "6    7  000552  靖远煤电   2.47  243.19  1048.15  2022年2季度股票投资明细\n",
       "7    8  601225  陕西煤业   2.45   49.05  1038.88  2022年2季度股票投资明细\n",
       "8    9  000090  天健集团   2.42  148.90  1025.92  2022年2季度股票投资明细\n",
       "9   10  601666  平煤股份   2.26   70.64   960.00  2022年2季度股票投资明细\n",
       "10  11  601958  金钼股份   2.19  105.00   928.20  2022年2季度股票投资明细\n",
       "11  12  600502  安徽建工   2.15  127.02   914.53  2022年2季度股票投资明细\n",
       "12  13  000002   万科A   2.12   43.92   900.36  2022年2季度股票投资明细\n",
       "13  14  000937  冀中能源   2.09  119.00   887.74  2022年2季度股票投资明细\n",
       "14  15  601000   唐山港   2.08  341.56   881.22  2022年2季度股票投资明细\n",
       "15  16  601009  南京银行   2.03   82.63   861.00  2022年2季度股票投资明细\n",
       "16  17  600863  内蒙华电   2.02  235.41   859.25  2022年2季度股票投资明细\n",
       "17  18  601088  中国神华   1.97   25.14   837.15  2022年2季度股票投资明细\n",
       "18  19  601098  中南传媒   1.97   88.53   835.72  2022年2季度股票投资明细\n",
       "19  20  601577  长沙银行   1.91  102.00   808.86  2022年2季度股票投资明细\n",
       "20  21  001979  招商蛇口   1.88   59.40   797.74  2022年2季度股票投资明细\n",
       "21  22  600057  厦门象屿   1.77   85.41   750.75  2022年2季度股票投资明细\n",
       "22  23  600548   深高速   1.72   76.65   731.24  2022年2季度股票投资明细\n",
       "23  24  002419  天虹股份   1.71  102.00   727.26  2022年2季度股票投资明细\n",
       "24  25  600064  南京高科   1.63   63.07   693.77  2022年2季度股票投资明细\n",
       "25  26  600028  中国石化   1.63  169.85   692.99  2022年2季度股票投资明细\n",
       "26  27  600461  洪城环境   1.60   83.72   677.29  2022年2季度股票投资明细\n",
       "27  28  600027  华电国际   1.52  164.49   646.45  2022年2季度股票投资明细\n",
       "28  29  600820  隧道股份   1.45  100.60   615.67  2022年2季度股票投资明细\n",
       "29  30  600350  山东高速   1.40  113.07   593.62  2022年2季度股票投资明细\n",
       "30  31  601668  中国建筑   1.39  111.20   591.58  2022年2季度股票投资明细\n",
       "31  32  000932  华菱钢铁   1.36  113.61   578.27  2022年2季度股票投资明细\n",
       "32  33  601928  凤凰传媒   1.35   79.97   571.79  2022年2季度股票投资明细\n",
       "33  34  600585  海螺水泥   1.29   15.55   548.60  2022年2季度股票投资明细\n",
       "34  35  600985  淮北矿业   1.27   37.00   538.72  2022年2季度股票投资明细\n",
       "35  36  000778  新兴铸管   0.94   83.00   400.06  2022年2季度股票投资明细\n",
       "36  37  601006  大秦铁路   0.86   55.70   367.06  2022年2季度股票投资明细\n",
       "37  38  601298   青岛港   0.86   67.00   366.49  2022年2季度股票投资明细\n",
       "38  39  600048  保利发展   0.84   20.47   357.41  2022年2季度股票投资明细\n",
       "39  40  600449  宁夏建材   0.79   27.50   334.68  2022年2季度股票投资明细"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.head(40)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "ename": "TypeError",
     "evalue": "fund_portfolio_hold_em() got an unexpected keyword argument 'symbol'",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mTypeError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m/home/xda/github/stock/fund/基金持仓股.ipynb Cell 3'\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m      <a href='vscode-notebook-cell:/home/xda/github/stock/fund/%E5%9F%BA%E9%87%91%E6%8C%81%E4%BB%93%E8%82%A1.ipynb#ch0000002?line=0'>1</a>\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39makshare\u001b[39;00m \u001b[39mas\u001b[39;00m \u001b[39mak\u001b[39;00m\n\u001b[0;32m----> <a href='vscode-notebook-cell:/home/xda/github/stock/fund/%E5%9F%BA%E9%87%91%E6%8C%81%E4%BB%93%E8%82%A1.ipynb#ch0000002?line=2'>3</a>\u001b[0m fund_portfolio_hold_em_df \u001b[39m=\u001b[39m ak\u001b[39m.\u001b[39;49mfund_portfolio_hold_em(symbol\u001b[39m=\u001b[39;49m\u001b[39m\"\u001b[39;49m\u001b[39m000001\u001b[39;49m\u001b[39m\"\u001b[39;49m, date\u001b[39m=\u001b[39;49m\u001b[39m\"\u001b[39;49m\u001b[39m2020\u001b[39;49m\u001b[39m\"\u001b[39;49m)\n\u001b[1;32m      <a href='vscode-notebook-cell:/home/xda/github/stock/fund/%E5%9F%BA%E9%87%91%E6%8C%81%E4%BB%93%E8%82%A1.ipynb#ch0000002?line=3'>4</a>\u001b[0m \u001b[39mprint\u001b[39m(fund_portfolio_hold_em_df)\n",
      "\u001b[0;31mTypeError\u001b[0m: fund_portfolio_hold_em() got an unexpected keyword argument 'symbol'"
     ]
    }
   ],
   "source": [
    "import akshare as ak\n",
    "\n",
    "fund_portfolio_hold_em_df = ak.fund_portfolio_hold_em(code=\"000001\", date=\"2020\")\n",
    "print(fund_portfolio_hold_em_df)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "906064a35c7980fda78a8b97014bc5560dca56efd2e047844bdf4fb8a9b9c8a3"
  },
  "kernelspec": {
   "display_name": "Python 3.9.7 ('cpy')",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
